<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>quiz</title>
</head>

<body>
<p>Quiz
  <!--quiz will go here-->
  
</p>
<?php
$rid = rand(1,4);
echo " This is Quiz $rid";
?>
<div>
<?php 
if ($rid==1)
{
	echo "
<form action='scorequiz.php?id=1' method='post' id='quizform' id='1'>

<ol>
	<li>
		<h3>what is question one</h3>
		<div>
		<input type='radio' name='answerone' id='answerone' value='A'/>
		<label for='answeroneA'>A) Answer 1</label>
		</div>
        
        <div>
		<input type='radio' name='answerone' id='answerone' value='B'/>
		<label for='answeroneB'>B) Answer 2</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='C'/>
		<label for='answeroneC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='D'/>
		<label for='answeroneD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question two</h3>
	  <div>
		<input type='radio' name='answertwo' id='answertwo' value='A'/>
		<label for='answertwoA'>A) incorrect</label>
	  </div>
        
        <div>
		<input type='radio' name='answertwo' id='aanswertwo' value='B'/>
		<label for='answertwoB'>B) correct</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='C'/>
		<label for='answertwoC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='D'/>
		<label for='answertwoD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question three</h3>
	  <div>
		<input type='radio' name='answerthree' id='answerthree' value='A'/>
		<label for='answerthreeA'>A) </label>
		<label for='answertwoB3'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerthree' id='answerthree' value='B'/>
		<label for='answerthreeB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='C'/>
		<label for='answerthreeC'>C) correct</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='D'/>
		<label for='answerthreeD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question four</h3>
	  <div>
		<input type='radio' name='answerfour' id='answerfour' value='A'/>
		<label for='answerfourA'>A) </label>
		<label for='answertwoB4'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerfour' id='answerfour' value='B'/>
		<label for='answerfourB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='C'/>
		<label for='answerfourC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='D'/>
		<label for='answerfourD'>D) correct</label>
		</div>
	</li>
</ol>
<input type='submit' value='Score Quiz' src='scorequiz.php'/>
</form>";
}

if ($rid==2)
{
	echo "
<form action='scorequiz.php?id=2' method='post' id='quizform' id='2'>

<ol>
	<li>
		<h3>what is question one</h3>
		<div>
		<input type='radio' name='answerone' id='answerone' value='A'/>
		<label for='answeroneA'>A) correct</label>
		</div>
        
        <div>
		<input type='radio' name='answerone' id='answerone' value='B'/>
		<label for='answeroneB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='C'/>
		<label for='answeroneC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='D'/>
		<label for='answeroneD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question two</h3>
	  <div>
		<input type='radio' name='answertwo' id='answertwo' value='A'/>
		<label for='answertwoA'>A) </label>
		<label for='answertwoB2'>incorrect</label>
	  </div>
        
        <div>
		<input type='radio' name='answertwo' id='aanswertwo' value='B'/>
		<label for='answertwoB'>B) correct</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='C'/>
		<label for='answertwoC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='D'/>
		<label for='answertwoD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question three</h3>
	  <div>
		<input type='radio' name='answerthree' id='answerthree' value='A'/>
		<label for='answerthreeA'>A) </label>
		<label for='answertwoB3'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerthree' id='answerthree' value='B'/>
		<label for='answerthreeB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='C'/>
		<label for='answerthreeC'>C) correct</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='D'/>
		<label for='answerthreeD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question four</h3>
	  <div>
		<input type='radio' name='answerfour' id='answerfour' value='A'/>
		<label for='answerfourA'>A) </label>
		<label for='answertwoB4'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerfour' id='answerfour' value='B'/>
		<label for='answerfourB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='C'/>
		<label for='answerfourC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='D'/>
		<label for='answerfourD'>D) correct</label>
		</div>
	</li>
</ol>
<input type='submit' value='Score Quiz' src='scorequiz.php'/>
</form>";
}
if ($rid==3)
{
	echo "
<form action='scorequiz.php?id=3' method='post' id='quizform' id='3'>

<ol>
	<li>
		<h3>what is question one</h3>
		<div>
		<input type='radio' name='answerone' id='answerone' value='A'/>
		<label for='answeroneA'>A) correct</label>
		</div>
        
        <div>
		<input type='radio' name='answerone' id='answerone' value='B'/>
		<label for='answeroneB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='C'/>
		<label for='answeroneC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='D'/>
		<label for='answeroneD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question two</h3>
	  <div>
		<input type='radio' name='answertwo' id='answertwo' value='A'/>
		<label for='answertwoA'>A) </label>
		<label for='answertwoB2'>incorrect</label>
	  </div>
        
        <div>
		<input type='radio' name='answertwo' id='aanswertwo' value='B'/>
		<label for='answertwoB'>B) correct</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='C'/>
		<label for='answertwoC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='D'/>
		<label for='answertwoD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question three</h3>
	  <div>
		<input type='radio' name='answerthree' id='answerthree' value='A'/>
		<label for='answerthreeA'>A) </label>
		<label for='answertwoB3'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerthree' id='answerthree' value='B'/>
		<label for='answerthreeB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='C'/>
		<label for='answerthreeC'>C) correct</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='D'/>
		<label for='answerthreeD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question four</h3>
	  <div>
		<input type='radio' name='answerfour' id='answerfour' value='A'/>
		<label for='answerfourA'>A) </label>
		<label for='answertwoB4'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerfour' id='answerfour' value='B'/>
		<label for='answerfourB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='C'/>
		<label for='answerfourC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='D'/>
		<label for='answerfourD'>D) correct</label>
		</div>
	</li>
</ol>
<input type='submit' value='Score Quiz' src='scorequiz.php' />
</form>";
}
if ($rid==4)
{
	echo "
<form action='scorequiz.php?id=4' method='post' id='quizform' id='4'>

<ol>
	<li>
		<h3>what is question one</h3>
		<div>
		<input type='radio' name='answerone' id='answerone' value='A'/>
		<label for='answeroneA'>A) correct</label>
		</div>
        
        <div>
		<input type='radio' name='answerone' id='answerone' value='B'/>
		<label for='answeroneB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='C'/>
		<label for='answeroneC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerone' id='answerone' value='D'/>
		<label for='answeroneD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question two</h3>
	  <div>
		<input type='radio' name='answertwo' id='answertwo' value='A'/>
		<label for='answertwoA'>A) </label>
		<label for='answertwoB2'>incorrect</label>
	  </div>
        
        <div>
		<input type='radio' name='answertwo' id='aanswertwo' value='B'/>
		<label for='answertwoB'>B) correct</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='C'/>
		<label for='answertwoC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answertwo' id='answertwo' value='D'/>
		<label for='answertwoD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question three</h3>
	  <div>
		<input type='radio' name='answerthree' id='answerthree' value='A'/>
		<label for='answerthreeA'>A) </label>
		<label for='answertwoB3'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerthree' id='answerthree' value='B'/>
		<label for='answerthreeB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='C'/>
		<label for='answerthreeC'>C) correct</label>
		</div>

		<div>
		<input type='radio' name='answerthree' id='answerthree' value='D'/>
		<label for='answerthreeD'>D) incorrect</label>
		</div>
	</li>
    
    <li>
		<h3>what is question four</h3>
	  <div>
		<input type='radio' name='answerfour' id='answerfour' value='A'/>
		<label for='answerfourA'>A) </label>
		<label for='answertwoB4'>incorrect</label>
		</div>
        
        <div>
		<input type='radio' name='answerfour' id='answerfour' value='B'/>
		<label for='answerfourB'>B) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='C'/>
		<label for='answerfourC'>C) incorrect</label>
		</div>

		<div>
		<input type='radio' name='answerfour' id='answerfour' value='D'/>
		<label for='answerfourD'>D) correct</label>
		</div>
	</li>
</ol>
<input type='submit' value='Score Quiz' src='scorequiz.php'/>
</form>";
}
?>
</div>

</body>
</html>